package cn.hansfly.log;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

public class FirstTry {
	static Logger log = Logger.getLogger(FirstTry.class.getName());

	public void test() {
		// log.addAppender(new ConsoleAppender());
		log.setLevel(Level.INFO);
		log.error("Error output where!!!");
		log.debug("Just test Debug");
		log.info("no more INof");
		log.warn("Women O");
	}

	public static void main(String[] args) {
		FirstTry f = new FirstTry();
		f.test();
	}
}
